import request from '@/utils/request'

// 查询缓存详细
export function getCache() {
  return request({
    url: '/monitor/cache',
    method: 'get'
  })
}

// 查询参保人员信息列表
export function listInsuredPersons(query) {
  return request({
    url: '/system/insuredPersons/list',
    method: 'get',
    params: query
  })
}

// 查询参保人员信息详细
export function getInsuredPerson(id) {
  return request({
    url: '/system/insuredPersons/' + id,
    method: 'get'
  })
}

// 新增参保人员信息
export function addInsuredPerson(data) {
  return request({
    url: '/system/insuredPersons',
    method: 'post',
    data: data
  })
}

// 修改参保人员信息
export function updateInsuredPerson(data) {
  return request({
    url: '/system/insuredPersons',
    method: 'put',
    data: data
  })
}

// 删除参保人员信息
export function delInsuredPerson(id) {
  return request({
    url: '/system/insuredPersons/' + id,
    method: 'delete'
  })
}
